package org.gxuwz.core.service.Impl;

import java.util.List;

import org.gxuwz.core.dao.IReimbursementDao;
import org.gxuwz.core.entity.TReimbursement;
import org.gxuwz.core.service.IReimbursementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


@Repository("ReimbursementService")
public class ReimbursementService implements IReimbursementService{
	@Autowired
	 IReimbursementDao    reimdao;

	@Override
	public void addFiles(TReimbursement reim) {
		reimdao.addReimbursemen(reim);
		
	}

	@Override
	public List<TReimbursement> getAll(String name, String perscode) {
		return reimdao.getAll(name, perscode);
	}

	@Override
	public List<TReimbursement> getAllJiLu() {
		return reimdao.getAllJiLu();
	}
	
	@Override
	public TReimbursement getByPerscode(String perscode) {
		return reimdao.getByPerscode(perscode);
	}

	@Override
	public void update(TReimbursement reim) {
		reimdao.update(reim);		
	}

	@Override
	public void delete(TReimbursement reim) {
		reimdao.delete(reim);		
	}

}
